package Input;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

import Menus.BuildingMenu;

public class BuildingMenuInput implements KeyListener
{
	private BuildingMenu menu;
	
	public BuildingMenuInput(BuildingMenu m)
	{
		this.menu = m;
	}

	@Override
	public void keyPressed(KeyEvent e) 
	{
		if(menu.getNearestBuilding() != null)
		{
			menu.getNearestBuilding().keyPressed(e);
		}
	}

	@Override
	public void keyReleased(KeyEvent e) 
	{
		
	}

	@Override
	public void keyTyped(KeyEvent e) 
	{
		
	}
	
}
